package com.example.employee.service;

import lombok.RequiredArgsConstructor;
import com.example.employee.model.Employee;
import org.springframework.stereotype.Service;
import com.example.employee.repository.EmployeeRepository;

@Service
@RequiredArgsConstructor
public class EmployeeService {
    private final EmployeeRepository employeeRepository;

    public Employee postEmployee(Employee employee) {
        return employeeRepository.save(employee);
    }
}
